<!-- xml version="1.0" encoding="utf-8" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
	<title>De Bello Gallico</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<link href="../flashcard.css" rel="stylesheet" type="text/css">
</head>


<script type="text/javascript">
var sentences = [
  [ ["His", "Caesar", "ita", "respondit:", "Eo", "sibi", "minus", "dubitationis", "dari,", "quod", "eas", "res,"],
    ["To-these", "Caesar", "thus", "replied:", "‘By-that", "to-himself", "less", "of-doubt", "to-be-given,", "that", "those", "things,"] ],
  [ ["quas", "legati", "Helvetii", "commemorassent,", "memoria", "teneret,", "atque", "eo", "gravius", "ferre,"],
    ["which", "legates", "Helvetian", "had-brought-to-mind,", "in-remembrance", "he-kept,", "and-also", "by-that_(himself)", "more-heavily", "to-bear_(those-things),"] ],
  [ ["quo", "minus", "merito", "populi", "Romani", "accidissent:"],
    ["by-how-much", "less", "to-[the]-desert", "of-people", "Roman", "they-had-fallen-out:"] ],
  [ ["qui", "si", "alicuius", "iniuriae", "sibi", "conscius", "fuisset,", "non", "fuisse", "difficile", "cavere;"],
    ["who", "if", "of-any", "wrong", "to-itself", "conscious", "had-been,", "not", "to-have-been", "difficult", "to-guard-against;"] ],
  [ ["sed", "eo", "deceptum,", "quod", "neque", "commissum", "a", "se", "intellegeret", "quare", "timeret,", "neque", "sine", "causa", "timendum", "putaret."],
    ["but", "by-that", "deceived-to-have-been,", "that", "neither", "(anything)_committed_(to-be)", "by", "itself", "it-knew", "on-account-of-which", "it-should-fear,", "neither", "without", "cause", "to-be-feared_(to-be)", "thought.’"] ],
  [ ["Quod", "si", "veteris", "contumeliae", "oblivisci", "vellet,", "num etiam", "recentium", "iniuriarum,"],
    ["That", "if", "of-[the]-old", "disgrace", "to-be-unmindful", "he-should-be_willing,", "also", "of-recent", "injuries,"] ],
  [ ["quod", "eo", "invito", "iter", "per", "provinciam", "per", "vim", "temptassent,"],
    ["that", "he", "[being]_unwilling", "[a]-march", "through", "province", "by", "violence", "they-had-attempted,"] ],
  [ ["quod", "Aeduos,", "quod", "Ambarros,", "quod", "Allobrogas", "vexassent,", "memoriam", "deponere", "posse?"],
    ["that", "Aedui,", "that", "Ambarri,", "that", "Allobroges", "they-had-harrassed,", "(himself)_[the]-remembrance", "to-lay-aside", "to-be-able?"] ],
  [ ["Quod", "sua", "victoria", "tam", "insolenter", "gloriarentur", "quodque", "tam", "diu", "se", "impune", "iniurias", "tulisse", "admirarentur,", "eodem", "pertinere."],
    ["That", "concerning-their", "victory", "so", "insolently", "they-boast", "that-also", "so", "long", "themselves", "with-impunity", "injuries", "to-have-inflicted", "they-admire,", "to-that-same_[result]", "to-tend."] ],
  [ ["Consuesse", "enim", "deos", "immortales,", "quo", "gravius", "homines", "ex", "commutatione", "rerum", "doleant,"],
    ["To-be-wont", "indeed", "[the]-gods", "immortal,", "that", "more-heavily", "men", "on-account-of", "change", "of-affairs", "may-grieve,"] ],
  [ ["quos", "pro", "scelere", "eorum", "ulcisci", "velint,", "his", "secundiores", "interdum", "res", "et", "diuturniorem", "impunitatem", "concedere."],
    ["whom", "for", "wickedness", "of-those", "to-punish", "they-may-wish,", "to-these", "more-prosperous", "meanwhile", "affairs", "and", "longer", "impunity", "to-concede."] ],
  [ ["Cum", "ea", "ita", "sint,", "tamen,", "si", "obsides", "ab", "eis", "sibi", "dentur,", "uti", "ea", "quae", "polliceantur", "facturos", "intellegat,"],
    ["Though", "those-things", "so", "are,", "nevertheless,", "if", "hostages", "by", "those", "to-himself", "be-given,", "that", "those-things", "which", "they-promise_(themselves)", "about-to-do_(to-be)", "he-may-know,"] ],
  [ ["et", "si", "Aeduis", "de", "iniuriis", "quas", "ipsis", "sociisque", "eorum", "intulerint,"],
    ["and", "if", "to-Aedui", "for", "[the]-injuries", "which", "on-themselves", "allies-too", "of-those", "they-have-inflicted,"] ],
  [ ["item", "si", "Allobrogibus", "satisfaciant,", "sese", "cum", "eis", "pacem", "esse", "facturum."],
    ["likewise", "if", "to-Allobroges", "they-give-satisfaction,", "himself", "with", "those", "peace", "to-be", "about-to-make.’"] ],
  [ ["Divico", "respondit:", "Ita", "Helvetios", "a", "maioribus", "suis", "institutos esse,", "uti", "obsides", "accipere,", "non", "dare,", "consuerint:"],
    ["Divico", "responded:", "‘So", "Helvetii", "by", "ancestors", "their-own", "to-have-been-taught,", "that", "hostages", "to-receive,", "not", "to-give", "they-are-accustomed;"] ],
  [ ["eius", "rei", "populum", "Romanum", "esse", "testem.", "Hoc", "responso", "dato", "discessit."],
    ["of-that", "thing", "people", "Roman", "to-be", "witness.’", "This", "response", "having-been-given", "he-departed."] ]
];

var i = 0;
var j = 0;

var shown = 0;

function updateVoc() {
	
	var sentence = "";
	
	for(n = 0; n < sentences[i][0].length; n++) {
		if (n == j) {
			sentence += ' <span class="curword">' + sentences[i][0][n] + "</span>";
		} else {
			sentence += " " + sentences[i][0][n];
		}
	}
	
	document.getElementById('v3').innerHTML = sentence;
	
	if (shown == 0) {
		document.getElementById('v1').innerHTML = "";
	} else {
		document.getElementById('v1').innerHTML = sentences[i][1][j];
	}
}

function next() {
	shown++;
	if (shown > 1) {
		shown = 0;
		j++;
		if (j >= sentences[i][0].length) {
			j = 0;
			i++;
			if (i >= sentences.length) {
				i = 0;
				alert('All done!');
			}
		}
	}
	updateVoc();
}

function prev() {
	shown--;
	if (shown < 0) {
		shown = 1;
		j--;
		
		if (j < 0) {
			i--;
			if (i < 0) {
				i = sentences.length - 1;
				alert('All done!');
			}
			j = sentences[i][0].length - 1;
		}
	}
	
	updateVoc();
}

</script>

<body onload="updateVoc()">
<h1 style="text-align:center; color: #60B0C0;">Liber I - Caput XIV</h1>

<div class="center">
<div id="v3" class="v3"></div>
<div id="v2" class="v2">&nbsp;</div>
<div id="v1" class="v1"></div>


<a href="#" class="button" id="btnprev" onclick="prev()" accesskey="p">&lt;&lt;</a>
<a href="#" class="button" id="btnnext" onclick="next()" accesskey="n">&gt;&gt;</a>


</div>
</body>
</html>
